package com.hk.service.product;

import java.util.List;

import com.hk.commons.HqlFilter;
import com.hk.commons.entity.product.Company;


public interface ICompany {
	public Company findById(Integer id);
	
	public Company findById(Long id);

	/**
	 * 保存
	 * 
	 * @param b
	 * @return
	 */
	public Integer add(Company u);

	/**
	 * 删除
	 * 
	 * @param id
	 * @return
	 */
	public void delete(Company u);

	/**
	 * 更新
	 * 
	 * @param b
	 */
	public void update(Company u);

	public List<Company> findByFilter(HqlFilter hqlFilter, int pageNum,
			int pageSize);

	public List<Company> findByFilter(HqlFilter hqlFilter);

	public Long countByFilter(HqlFilter hqlFilter);
}
